<script>
	import {
		globalStore
	} from "@/store/global.js";

	export default {
		onLaunch: function() {
			const useGlobalStore = globalStore();
			console.log("App Launch");
			uni.$on("showLoading", () => {
				useGlobalStore.setLoading(true);
			})
			uni.$on("hideLoading", () => {
				useGlobalStore.setLoading(false);
			})
		},
		onShow: function() {
			console.log("App Show");
		},
		onHide: function() {
			console.log("App Hide");
		},
	};
</script>

<style>
	@import "/static/iconfont/iconfont.css";
	@import "/static/iconfont/iconfont-weapp/iconfont-weapp-icon.css";

	@font-face {
		font-family: SmileySans;
		src: url("./static/fonts/SmileySans-Oblique.ttf");
	}

	/* 每个页面公共css */
	page {
		margin: 0;
		max-height: calc(100vh - var(--status-bar-height));
		min-width: 100vw;
		font-family: Arial, Helvetica, sans-serif;
		/* padding-top: var(--status-bar-height); */
	}

	.icon {
		width: 16rpx;
		height: 16rpx;
		vertical-align: -0.15em;
		fill: currentColor;
		overflow: hidden;
	}

	/* #ifndef MP-WEIXIN */
	* {
		box-sizing: border-box;
	}

	/* #endif */
</style>
